<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <ul>
      <li v-for="(item,index) of list" :key = "index">{{ item.area }}</li>
    </ul>
  </div>
</body>
<script src="lib/vue.js"></script>
<script>
  new Vue({
    el: '#app',
    data: {
      list: []
    },
    mounted () {
      // fetch请求的数据是基于promise的
      // 需要先将其转换为json的格式
      // 然后再使用
      fetch('https://api.i-lynn.cn/college')
        .then(res => res.json())
        .then(res => {
          console.log(res)
          this.list = res.data.list
        })
    }
  })
</script>
</html>